package cn.comtom.ewbs.signature.entity;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
 
/**
 * <p>
 * 角色权限中间表
 * </p>
 *
 * @author liuhy
 * @since 2022-11-04 18:07:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_permission_role")
@ApiModel(value = "SysPermissionRole对象", description = "角色权限中间表")
public class SysPermissionRole extends Model<SysPermissionRole> {
 
    private static final long serialVersionUID = 1L;
 
    @TableId("id")
    private String id;
 
    @ApiModelProperty("角色id")
    @TableField("role_id")
    private String roleId;
 
    @ApiModelProperty("权限id")
    @TableField("permission_id")
    private String permissionId;
 
 
    @Override
    public Serializable pkVal() {
        return this.id;
    }
 
}